package com.winona.ui;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.TextView;

import com.taplinker.client.R;
import com.winona.Base1Activity;

public class RegistrationActivity extends Base1Activity {
	private ImageButton back;
	private ImageView agree;
	private TextView title;
	private EditText phone, mail, password, repassword, verification;
	private Button button;
	private Intent intent;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.register);
		findView();
		 Animation animRef = AnimationUtils.loadAnimation(this, R.anim.anim1);
		setListener();
		title.setText("用户注册");

	}

	private void setListener() {
		back.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				intent = new Intent(RegistrationActivity.this,
						LoginActivity.class);
				startActivity(intent);
				overridePendingTransition(R.anim.input, R.anim.out);
			}
		});
	}

	private void findView() {
		back = (ImageButton) findViewById(R.id.register_back);
		title = (TextView) findViewById(R.id.register_title);
		phone = (EditText) findViewById(R.id.register_phone);
		mail = (EditText) findViewById(R.id.register_mail);
		password = (EditText) findViewById(R.id.register_password);
		repassword = (EditText) findViewById(R.id.register_repassword);
		verification = (EditText) findViewById(R.id.register_verification);
		agree = (ImageView) findViewById(R.id.register_agree);
		button = (Button) findViewById(R.id.register_button);

	}
}
